#!/usr/bin/env python
#coding=utf-8

from optparse import OptionParser

def main():
    usage = "%prog [options]"
    parser = OptionParser(usage = usage)
    parser.add_option("-d", "--demo", dest="demo", help=u"Demo option", metavar=u"HelloWorld！")
    (options, args) = parser.parse_args()
    if not options.demo:
        parser.print_help()
        return
    print options.demo
    print args

if __name__ == "__main__":
    main()

